public class Ex5_13{
	public static void main(String[] args){
		System.out.printf("i\t\tm(i)\n");
		for (int i = 1; i <= 20; i++){
			System.out.printf("%d\t\t%.4f\n", i, m(i));
		}
	}
	
	public static double m(int i){
		double s = 0;
		for (int j = 1; j <= i; j++){
			s += 1.0 * j / (j + 1);
		}
		return s;
	}
}
